<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$AdminTitle}</title>
<style>
body, dl, dt, dd, ol, ul, li, pre, form, field, div, p, fieldset, iframe, object, pre, code, legend, blockquote, h1, h2, h3, h4, h5, h6 {position:relative;width:auto;height:auto; font-family:"Verdana", "Arial", "Helvetica", "sans-serif"; margin:0px; padding:0px; font-size:12px;border:0px;clear:none;}
body {text-align:left;width:100%;height:100%;overflow:hidden;}
a, a:link, a:visited, a:hover, a:active{cursor:pointer;text-decoration:none; color:#000;}
ul, ol, li{ list-style:none; }
img{ border:0px;}
p, li{ line-height:1.8em;}
.null{}
.f14{font-size:14px;}
.f16{font-size:16px;}
.clear{clear:both;}

#lockShade{display:none;position:absolute;z-index:99;background-color:#C7EDCC;filter:alpha(opacity=80);opacity:0.8;z-index:99;width:100%;height:100%;}
#unlockForm{display:none;position:absolute;z-index:100;background-color:#FFF;text-align:center;left:50%;top:25%;margin:0 0 0 -150px;width:300px;border:1px dotted #063;}
.dtable{display:table;}
.drow{display:table-row;width:100%;height:40px;line-height:40px;}
#unlock_tip{display:none;}

#header{background-image:url("/res/Admin/Blue/header_bg.jpg");width:auto;height:56px;}
#header-title{background-image:url("/res/Admin/Blue/header_left.jpg");width:260px;height:56px;float:left;}
#header-right{background-image:url("/res/Admin/Blue/header_right.jpg");width:268px;height:56px;float:right;}
#header-info{display:block;position:relative;margin:0px auto;padding:20px 0px 0px 4px;width:450px;height:36px;line-height:30px;font-weight:bolder;text-align:center;}
#header-info a{color:#fff;font-size:12px;}

#menu{float:left;width:169px;margin-top:3px;background-image:url("/res/Admin/Blue/menu_bg.jpg");border-right:1px solid #D1E6F7;}
.menu_block_title{background-image:url("/res/Admin/Blue/menu_bt.jpg");width:120px;height:22px;line-height:22px;margin:0px auto;padding-left:30px;}
.menu_block_list{margin:5px 0px;}
.menu_block_list li{display:none;background:url("/res/Admin/Blue/menu_icon.gif") no-repeat left;margin-left:20px;padding-left:20px;height:20px;line-height:20px;}

#main_top{float:right;margin-top:3px;height:50px;width:auto;}
#main_top_1{background:url("/res/Admin/Blue/title_bg1.jpg");height:28px;width:100%;line-height:28px;}
#main_top_2{background:#b1ceef;height:1px;width:100%}
#main_top_3{background:url("/res/Admin/Blue/shadow_bg.jpg");height:20px;width:100%}
#main{float:right;margin-top:3px;overflow-y:scroll;}

</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
if (window.jQuery) {
	document.write('<script type="text/javascript" src="/res/js/global.js"><\/script>');
} else {
	document.write('<script type="text/javascript" src="/res/js/global-jquery.js"><\/script>');
}
</script>
{if !empty($jformjs)}
<script src="/res/js/jform.js"></script>
{/if}
<script type="text/javascript">
var block = '{$block}';
jQuery(function(){
	setWH();
	
	$(window).resize(function(){setWH();});
	
	$('.menu_block_title').click(function(){
		var listId = $(this).attr('id');
		var listObj = $('#'+listId+'_list');
		if ($(this).data('show')) {
			listObj.children().hide();
			$(this).data('show', false);
		} else {
			listObj.children().show();
			$(this).data('show', true);
		}
	});
	
	$('#'+block).click();
});

function setWH()
{
	var allWidth		= $(window).width();
	var allHeight		= $(window).height();
	var headerHeight	= $('#header').height();
	var footerHeight	= $('#footer').height();
	
	var menuHeight	= allHeight - headerHeight - footerHeight - 3;
	var mainWidth	= allWidth - $('#menu').width() - 10;
	var mainHeight	= allHeight - headerHeight - footerHeight - $('#main_top').height() - 3;
	$('#menu').height(menuHeight);
	$('#main_top').width(mainWidth);
	$('#main').width(mainWidth);
	$('#main').height(mainHeight);
	$('#lockShade').width(allWidth);
	$('#lockShade').height(allHeight);
	
	if ('_setWH' in window) {
		_setWH();
	}
}
/*function lock()
{
	var allWidth		= $(window).width();
	var allHeight		= $(window).height();
	$('#lockShade').show().width(allWidth).height(allHeight);
	$('#unlockForm').show();
	var data = {"do":"lock"};
	$.post('/admin.php?mo=action', data, function(response, textStatus){
		if (response.result) {
			$('#lockShade').hide();
			$('#unlockForm').hide();
		} else {
			$('#unlock_tip').show().text(response.msg);
		}
	}, "json");
}
function unlock()
{
	var data = {"do":"unlock", "password":$('#unlockpassword').val()};
	$.post('/admin.php?mo=action', data, function(response, textStatus){
		if (response.result) {
			$('#lockShade').hide();
			$('#unlockForm').hide();
		} else {
			$('#unlock_tip').show().text(response.msg);
		}
	}, "json");
}
window.onbeforeunload = function() {
	// 如果有锁定前置操作代码,直接退出后台
	window.location = '/admin.php?mo=action&do=logout';
}*/
</script>
</head>

<body>
<!--<div id="lockShade">
</div>
<div id="unlockForm" class="dtable">
	<table width="100%">
    	<tr><td height="40">{$PleaseInputPassToUnLock}</td></tr>
    	<tr id="unlock_tip"><td height="40">{$PleaseInputPassToUnLock}</td></tr>
    	<tr><td height="40"><input type="password" name="password" id="unlockpassword" class="input" /></td></tr>
    	<tr><td height="40"><input type="button" class="input" value="{$UnLockText}" onclick="unlock()" /></td></tr>
    </table>
</div>-->

<div id="header">
    <div id="header-title"></div>
    <div id="header-right"></div>
    <div id="header-info">
    	<!--<a href="javascript:lock();">{$LockText}</a>-->
    	<a href="admin.php?mo=modifyAdmin">{$ModifyAdminNamePass}</a>&nbsp;&nbsp;&nbsp;
    	<a href="admin.php?mo=action&do=logout">{$Logout}</a>
    </div>
</div>
<div class="clear"></div>
<div id="menu">
	<div style="height:10px;width:100%;"></div>
    
    <div id="base" class="menu_block_title">{$BaseSetting}</div>
    
	<ul id="base_list" class="menu_block_list">
    	<li><a href="admin.php?block=base&mo=aboutUs">{$AboutUs}</a></li>
    	<li><a href="admin.php?block=base&mo=contactUs">{$ContactUs}</a></li>
    	<li><a href="admin.php?block=base&mo=bottomInfo">{$BottomInfo}</a></li>
    	<li><a href="admin.php?block=base&mo=smtpSet">{$SmtpSet}</a></li>
    	<li><a href="admin.php?block=base&mo=guestBook">{$GuestBook}</a></li>
    	<li><a href="admin.php?block=base&mo=websiteSet">{$WebsiteSet}</a></li>
    </ul>
    
    <div id="product" class="menu_block_title">{$ProductManage}</div>
    <!--product-->
	<ul id="product_list" class="menu_block_list">
    	<li><a href="admin.php?block=product&mo=productList">{$ProductList}</a></li>
    	<li><a href="admin.php?block=product&mo=productDetail">{$ProductAdd}</a></li>
    	<li><a href="admin.php?block=product&mo=productCategoryList">{$ProductCategoryList}</a></li>
    	<li><a href="admin.php?block=product&mo=productCategoryDetail">{$ProductCategoryAdd}</a></li>
    </ul>
    <!--//end product-->
    
    <div id="news" class="menu_block_title">{$NewsManage}</div>
    <!--news-->
	<ul id="news_list" class="menu_block_list">
    	<li><a href="admin.php?block=news&mo=newsList">{$NewsList}</a></li>
    	<li><a href="admin.php?block=news&mo=newsDetail">{$NewsAdd}</a></li>
    	<li><a href="admin.php?block=news&mo=newsCategoryList">{$NewsCategoryList}</a></li>
    	<li><a href="admin.php?block=news&mo=newsCategoryDetail">{$NewsCategoryAdd}</a></li>
    </ul>
    <!--//end news-->
    
</div>

<div id="main_top">
	<div id="main_top_1">&nbsp;&nbsp;&nbsp;&nbsp;{$CurrentPosition} &gt;&gt; {$curPos}</div>
	<div id="main_top_2"></div>
	<div id="main_top_3"></div>
</div>

